package org.esionwong.controller;

import org.esionwong.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import org.esionwong.utils.ResponseHelper;


@RestController
public class TestController {

    @Autowired
    private UserService userService;


    @GetMapping("/page")
    public ResponseHelper page() {
        return ResponseHelper.ok(userService.page(1, 10));
    }

}
